<?php

/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/10/11 16:16
 * Desc: 游记
 */
abstract class Contract_Api_Notes
{
    use Trait_Api_Image;

    use Trait_Api_Content;

    /**
     * 筛选搜索,列表
     * @param $params
     * @return array
     */
    abstract function get_list($params): array;

    /**
     * 游记详情
     * @param $id
     * @return array
     * @throws Exception
     */
    abstract function get_detail($id): array;

    /**
     * 会员游记
     * @param $mid
     * @param $params
     * @return array
     */
    abstract function member_notes($mid, $params): array;

    /**
     * 点赞
     * @param $id
     * @return bool
     * @throws Exception
     */
    abstract function thumbs_up($id): bool;

    /**
     * 删除
     * @param $mid
     * @param $id
     * @return bool
     * @throws Exception
     */
    abstract function delete($mid, $id): bool;

    /**
     * 编辑
     * @param $mid
     * @param $params
     * @return bool
     * @throws Exception
     */
    abstract function edit($mid, $params): bool;
}